import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '下级SCID',
    dataIndex: 'scid'
   },
   {
    title: '站点编号，主键，按照集团统一资源库模型编制',
    dataIndex: 'siteid'
   },
   {
    title: '站点名称',
    dataIndex: 'sitename'
   },
   {
    title: '站点描述',
    dataIndex: 'sitedesc'
   },
   {
    title: '经度',
    dataIndex: 'longitude'
   },
   {
    title: '纬度',
    dataIndex: 'latitude'
   },
   {
    title: '局站特征',
    dataIndex: 'nodefeatures'
   },
   {
    title: '局站类型',
    dataIndex: 'sitetype'
   },
   {
    title: '区域编号（区域表主键）',
    dataIndex: 'areaid'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '下级SCID',
    field: 'scid',
    component: 'Input'
  },
 {
    label: '站点编号，主键，按照集团统一资源库模型编制',
    field: 'siteid',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '下级SCID',
    field: 'scid',
    component: 'Input',
  },
  {
    label: '站点编号，主键，按照集团统一资源库模型编制',
    field: 'siteid',
    component: 'Input',
  },
  {
    label: '站点名称',
    field: 'sitename',
    component: 'Input',
  },
  {
    label: '站点描述',
    field: 'sitedesc',
    component: 'Input',
  },
  {
    label: '经度',
    field: 'longitude',
    component: 'Input',
  },
  {
    label: '纬度',
    field: 'latitude',
    component: 'Input',
  },
  {
    label: '局站特征',
    field: 'nodefeatures',
    component: 'Input',
  },
  {
    label: '局站类型',
    field: 'sitetype',
    component: 'Input',
  },
  {
    label: '区域编号（区域表主键）',
    field: 'areaid',
    component: 'Input',
  },
];
